package com.example.JcGQS.pojo.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 物料列表Vo
 *
 * @author 末日
 * @date 2023/11/21
 */
@Data
public class GoodsListVo {

    public GoodsListVo(Integer goodsId, String goodsNumber, Integer categoryId, String categoryName, String goodsName, String goodsSpecification, String goodsModel, String goodsUnit, String brand) {
        this.goodsId = goodsId;
        this.goodsNumber = goodsNumber;
        this.categoryId = categoryId;
        this.categoryName = categoryName;
        this.goodsName = goodsName;
        this.goodsSpecification = goodsSpecification;
        this.goodsModel = goodsModel;
        this.goodsUnit = goodsUnit;
        this.brand = brand;
    }

    /**
     * 物料id
     */
    private Integer goodsId;

    /**
     * 物料编号
     */
    private String goodsNumber;
    /**
     * 物品类型id
     */
    private Integer categoryId;
    /**
     * 物品类型名称
     */
    private String categoryName;

    /**
     * 物料名称
     */
    private String goodsName;

    /**
     * 物料规格
     */
    private String goodsSpecification;

    /**
     * 物料型号
     */
    private String goodsModel;

    /**
     * 物料单位
     */
    private String goodsUnit;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 数据创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime goodsCreateTime;

    /**
     * 数据更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime goodsUpdateTime;

}
